<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //定义变量
        {
            var a = 1;
            let b = 2;
        }
        console.log(a)
        console.log(b)

        var m = 1;
        var m = 2;
        let n = 10;
        let n = 20;
        console.log(m)
        console.log(n)
    </script>
</body>

</html>